Module modeling
[hide private]

Module modeling

source code

This library helps in creating common classes and links

Classes [hide private]
  NetworkInterface
This class represents Network interface
  _ProcessDo
Class represents Process Data Object - process with all its attributes
  _ProcessMatcher
Class represents process matcher, which decides whether particual process satisfies defined conditions
  _ProcessModifier
Class represents a modifier of a process.
  _ProcessSanitizer
Class sanitizes processes by defined rules - adjusts the data or prevents illegal values to enter CMDB
  __J2eeServerDefinition
  __AppServerTypeDefinition
  CmdbClassModel
CMDB class model wrapper
  StaticMethod
Class that represents static method
  _HostBuilderStaticMethod
  OshBuilder
  RoleDefinition
  OshClassEntryFilter
Defines whether OSH class is among owners
  HostRoleEnum
Predefined role definitions that node may own
  HostBuilder
  PathExtractor
Helper class that is used to extract the executable path of service from full command line.
Functions [hide private]
 
createDiskOSH(containerHost, dataName, type, size=None, failures=None, name=None)
Creates an ObjectStateHolder class that represents a disk.
source code
 
isAllowedStorageType(storageType)
This method returns true if storageType is included to the list of allowed storage types.
source code
ObjectStateHolderVector
createInterfacesOSHV(networkInterfaces, containerHostOSH=None)
Creates a vector of ObjectStateHolder of type interface
source code
 
isValidInterface(mac, description=None, name=None)
Check whether interface is valid.
source code
ObjectStateHolder
createInterfaceOSH(mac, hostOSH=None, description=None, index=None, type=None, adminStatus=None, operStatus=None, speed=None, name=None, alias=None, interfaceClass="interface")
Creates an ObjectStateHolder based on the interface at the specified address.
source code
ObjectStateHolder
createLinkOSH(className, end1, end2)
Creates an ObjectStateHolder class that represents a link.
source code
 
getIpAddressPropertyValue(ipAddress, netmask, dhcpEnabled=None, interfaceName=None)
str, str[, bool or str, str] -> str
source code
 
_getDomainScopeManager() source code
ObjectStateHolder
createIpOSH(ipAddress, netmask=None, dnsname=None, ipProps=None)
Creates an ObjectStateHolder that represents an IP.
source code
 
setHostOsName(hostOsh, osName) source code
 
isMatchedByRegexpList(regexpListString, value, delimiter=COMMA)
Checks if some value part of value can be matched by at least one regexp.
source code
 
isIncludedToList(listOfElementsString, value, delimiter=COMMA)
Check value for existance in the string of elements delimited by <delimiter> str, str, str -> bool
source code
 
addHostAttributes(uh_obj, osName=None, machineName=None, machineBootDate=None)
Sets the machine name and operation system attributes of a node.
source code
 
createHostOSH(ipAddress, hostClassName="node", osName=None, machineName=None, machineBootDate=None)
Creates a node OSH with its associated IP Address, operation system name.
source code
ObjectStateHolder
createNetworkOSH(ipAddress, netmask)
create a new OSH that represent a network
source code
 
__isVMWareInterface(interfaceDescription) source code
 
__isAllowedInterface(interfaceDescription) source code
 
__isKnownHost(hostKey, existingMacs, discoveredMacs) source code
 
createCompleteHostOSHByInterfaceList(hostClass, interfaceList, osName=None, machineName=None, machineBootDate=None, host_cmdbid=None, host_key=None, host_macs=None, ucmdb_version=None)
Returns the minimal valid mac address to be used as key for the node.
source code
ObjectStateHolder
createCompleteHostOSH(hostClass, hostKey, osName=None, machineName=None, machineBootDate=None)
Creates a OSH that represents a complete node.
source code
ObjectStateHolderVector that contains three ObjectStateHolder classes
createHostAndIPOSHV(ip)
Creates an incomplete node and an IP connected with a contained link.
source code
 
processBytesAttribute(stringValue)
Return data for bytes attribute - zips the data bytes encoded as UTF-8 and returns the following information set: (Zipped Bytes, CheckSum Value, String Length)
source code
 
createCFOSH(filename, extension, path, filecontent, containerOSH=None, description=None, charsetName=None)
Creates a ObjectStateHolder that contains a zipped configuration file.
source code
 
createConfigurationDocumentOshByFile(file, containerOsh, contentType=None, description=None, charsetName=None) source code
 
createConfigurationDocumentOSH(name, path, content, containerOSH=None, contentType=None, contentLastUpdate=None, description=None, version=None, charsetName=None)
Creates ObjectStateHolder that represents a configuration document.
source code
ObjectStateHolder
createProcessOSH(name, hostOSH, process_cmdline=None, process_pid=None, process_path=None, process_parameters=None, process_user=None, process_startuptime=None, procDescription=None)
Creates a new OSH that represent a process.
source code
ObjectStateHolder
createServiceURLAddressOsh(hostOSH, url)
Returns: a new ObjectStateHolder that represents an ipserver
source code
ObjectStateHolder
createUrlOsh(hostOsh, url, type=None)
Creates a new OSH that represents an url
source code
ObjectStateHolder
createServiceAddressOsh(hostOSH, ip, portNumber, portType, portName=None)
Creates a new OSH that repesents an ipserver.
source code
 
getDatabaseDataName(dbType) source code
 
getSupportedDbTypes() source code
 
createDatabaseOSH(dbType, dbName, dbPort, ip, hostOSH, credentialsID=None, userName=None, timeout=None, dbVersion=None, appVersion=None, applicationVersionNumber=None) source code
 
setDatabaseVersion(dbOsh, version)
ObjectStateHolder, str -> void
source code
 
createWebServerOSH(serverType, port, configfile, hostOSH, isIHS, serverVersion=None) source code
 
setWebServerVersion(webServerOsh, version)
ObjectStateHolder, str -> void
source code
 
createExchangeServer(host, applicationIp=None, credentialsId=None, exchangeVersion=None) source code
 
getProductNameByApplicationName(applicationName) source code
 
setApplicationProductName(applicationOsh, applicationName=None) source code
 
getDiscoveredProductNameByType(applicationClass) source code
 
setApplicationDiscoveredProductName(applicationOsh, productName=None)
ObjectStateHolder, str -> None
source code
 
createApplicationOSH(citName, name, hostOsh, category=None, vendor=None) source code
 
createSapInstanceOSH(servertype, serverName, address, hostOsh) source code
 
setAppServerType(appServerOsh) source code
 
createJ2eeDomain(domainName, Framework=None, vendor=None, adminServerInfo=None) source code
 
setAppSystemVendor(appSystemOsh, vendor=None) source code
 
createJ2EEServer(type, ipddress, port=None, hostOSH=None, serverName=None, domainName=None)
VERY IMPORTANT: despite serverName has default value(None) it is very important to set its name since this is key attribute for j2eeserver.
source code
 
setJ2eeServerAdminDomain(serverOSH, adminDomainName) source code
 
createNtcmdOSH(ip_address, credentialsId, language, codePage)
str, str, str, str -> ObjectStateHolder
source code
 
createSSHOSH(ip_address, port)
str, str -> ObjectStateHolder
source code
 
createTelnetOSH(ip_address, port)
str, str -> ObjectStateHolder
source code
 
createSnmpOSH(ip_address, port)
str, str -> ObjectStateHolder
source code
 
createTTYOSH(clientType, ip_address, port)
str, str, str(port) -> ObjectStateHolder
source code
 
createWmiOSH(ip_address)
str -> ObjectStateHolder
source code
 
createClusterSoftwareOSH(hostOSH, clustName, version=None, vendor=None) source code
 
createCpuOsh(cid, hostOsh, speed=None, coreNumber=None, vendor=None, descr=None, data_name=None)
Creates CPU OSH by specified cid and node container str, ObjectStateHolder[, long(speed MHz), int(coreNumber), str, str, str] -> ObjectStateHolder
source code
 
createActiveDirectoryOsh(className, dataName)
str, str -> ObjectStateHolder
source code
ObjectStateHolder
createOshByCmdbId(className, cmdbId)
Creates a new OSH that represent a configuration item of type 'className'
source code
ObjectStateHolder
createOshByCmdbIdString(className, cmdbId)
Creates a new OSH that represent a configuration item of type 'className'
source code
 
__createOshByCmdbId(className, cmdbId) source code
 
getDateFromUtcString(utcDateString)
Helper function that parses a string representing a date in UTC format and returns date as java.util.Date object UTC date example: 20080517201331.843750+180
source code
 
getDateFromString(dateString, dateFormatString, timeZone=None, locale=Locale.ENGLISH)
Helper function that parses a date from string using specified date format, timezone and locale Timezone is java.util.TimeZone instance Locale is java.util.Locale instance, defaults to English Returns date as java.util.Date object
source code
 
setAdditionalKeyAttribute(osh, attributeName, attributeValue, attributeTypeStr=AppilogTypes.STRING_DEF) source code
 
setHostSerialNumberAttribute(hostOsh, serialNumber) source code
 
setHostManufacturerAttribute(hostOsh, manufacturer) source code
 
setHostModelAttribute(hostOsh, model) source code
 
setSNMPSysObjectId(hostOsh, objectId) source code
 
setHostMemorySizeAttribute(hostOsh, memorySizeInMegabytes) source code
 
setHostSwapMemorySizeAttribute(hostOsh, swapMemorySizeInMegabytes) source code
 
setVlanIdAttribute(vlanOsh, vlanId) source code
 
setPhysicalPortNumber(portOsh, portNumber) source code
 
setHostDefaultGateway(hostOsh, defaultGateway) source code
 
setHostBiosUuid(hostOsh, biosUuid) source code
 
setHostOsFamily(hostOsh, osFamily=None, osTypeOrClassName=None) source code
 
setPortRemoteNumber(portOsh, remoteNumber) source code
 
createDnsOsh(dnsServerIp, dnsHostOsh) source code
 
createWinsOsh(winsServerIp, winsHostOsh) source code
 
createDhcpOsh(dhcpServerIp, dhcpHostOsh) source code
 
finalizeHostOsh(hostOsh)
Returns: hostOsh or None @deprecated
source code
 
createLayer2ConnectionWithLinks(macList, parentSwitch, localInterface=None) source code
 
createServiceOSH(hostOsh, serviceName, serviceDescr, serviceCommand, serviceStartType=None, serviceOperatingStatus=None, serviceCanBePaused=None, serviceCanBeUninstalled=None, serviceStartUser=None)
Creates Windows Service OSH by specified service name and node container
source code
 
createVlanOsh(vlanId, parentOsh=None, portIdList=[]) source code
Variables [hide private]
  SERVICEADDRESS_TYPE_TCP = 1
  SERVICEADDRESS_TYPE_UDP = 2
  SERVICEADDRESS_TYPE_URL = 3
  FIXED_DISK_STORAGE_TYPE = 'FixedDisk'
  NETWORK_DISK_STORAGE_TYPE = 'NetworkDisk'
  COMPACT_DISK_STORAGE_TYPE = 'CompactDisk'
  REMOVABLE_DISK_STORAGE_TYPE = 'RemovableDisk'
  FLOPPY_DISK_STORAGE_TYPE = 'FloppyDisk'
  VIRTUAL_MEMORY_STORAGE_TYPE = 'VirtualMemory'
  FLASH_MEMORY_STORAGE_TYPE = 'FlashMemory'
  RAM_DISK_STORAGE_TYPE = 'RamDisk'
  RAM_STORAGE_TYPE = 'Ram'
  NO_ROOT_DIRECTORY_STORAGE_TYPE = 'No Root Directory'
  OTHER_STORAGE_TYPE = 'Other'
  UNKNOWN_STORAGE_TYPE = "UNKNOWN"
  IGNORE_INTERFACE_PATTERN_FILTER = ['LoopBack', 'Wireless', 'Vi...
  IP_ADDRESS_PROPERTY_LOOPBACK = 'loopback'
  IP_ADDRESS_PROPERTY_DHCP = 'dhcp'
  IP_ADDRESS_PROPERTY_BROADCAST = 'broadcast'
  IP_ADDRESS_PROPERTY_ANYCAST = 'anycast'
  MIME_TEXT_PLAIN = "text/plain"
  MIME_TEXT_XML = "text/xml"
  OS_TYPE_AND_CLASS_TO_OS_FAMILY_MAP = {'linux': 'unix', 'sunos'...
  databaseDataNames = {'oracle': 'Oracle DB', 'sqlserver': 'MSSQ...
  STORAGE_ID_TO_STORAGE_TYPE = {0: OTHER_STORAGE_TYPE, 1: NO_ROO...
  applicationNameToProductNameMap = {'Oracle DB': 'oracle_databa...
  applicationTypeToDiscoveredProductNameMap = {'abap_sap_central...
  CLASSES_80_TO_BDM = {'host': 'node', 'clusteredservice': 'clus...
  MIME_TYPES = {'3dm': 'x-world/x-3dmf', '3dmf': 'x-world/x-3dmf...
  TCP_PROTOCOL = PortInfo.TCP_PROTOCOL
  UDP_PROTOCOL = PortInfo.UDP_PROTOCOL
  COMMA = ', '
  __J2EE_SERVERS = {'glassfish': __J2eeServerDefinition('glassfi...
  __J2EE_APP_SERVER = __AppServerTypeDefinition(['j2ee'])
  __SAP_ABAP_APP_SERVER = __AppServerTypeDefinition(['sap'])
  __SAP_J2EE_APP_SERVER = __AppServerTypeDefinition(['j2ee, sap'])
  __SIEBEL_APP_SERVER = __AppServerTypeDefinition(['siebel'])
  __APP_SERVER_TYPES = {'j2eeserver': __AppServerTypeDefinition(...
  __APP_SYSTEM_VENDORS = {'exchangesystem': 'microsoft_corp', 't...
  ACTIVE_DIRECTORY_DOMAIN_CIT = 'activedirectorydomain'
  DOMAIN_CONTROLLER_CIT = 'domaincontroller'
  _CMDB_CLASS_MODEL = CmdbClassModel()
@deprecated methods
  checkAttributeExists = _CMDB_CLASS_MODEL.isExistingAttribute
  checkIsKeyAttribute = _CMDB_CLASS_MODEL.isKeyAttribute
  __setAttributeIfExists = _CMDB_CLASS_MODEL.setAttributeIfExists
end
  SERVICE_DESCRIPTION_MAX_LENGTH = 1000
  SERVICE_COMMAND_LINE_MAX_LENGTH = 2500
Function Details [hide private]

createDiskOSH(containerHost, dataName, type, size=None, failures=None, name=None)

source code 

Creates an ObjectStateHolder class that represents a disk. This method uses may return None in case type is not an allowed storage type.

Parameters:
  • containerHost (ObjectStateHolder) - the container node ObjectStateHolder
  • dataName (string) - name of a disk
  • type (string) - storage type
  • size (double) - size of a disk in Megabytes
  • failures (integer) - The number of requests for storage represented by this entry that could not be honored due to not enough storage.
  • name (string) - name

See Also: isAllowedStorageType

isAllowedStorageType(storageType)

source code 

This method returns true if storageType is included to the list of allowed storage types. Allowed storage types are taken from discoveredStorageTypes property which resides inside globalSettings.xml configuration file.

createInterfacesOSHV(networkInterfaces, containerHostOSH=None)

source code 

Creates a vector of ObjectStateHolder of type interface

Parameters:
  • networkInterfaces (a list NetworkInterface) - - a list of interfaces from which we create the OSHV (Object State Holder Vector).
  • containerHostOSH (ObjectStateHolder) - - the container node of the interfaces
Returns: ObjectStateHolderVector
a vector that contains ObjectStateHolder classes that were created from the input

isValidInterface(mac, description=None, name=None)

source code 

Check whether interface is valid. Support for NNM pseudo interfaces that are prefixed with constant value. str[, str, str] -> bool For CMDB 8 check only mac (physical address or interface index) For CMDB 9 if mac is not valid - name and description can be checked for existence too

Deprecated: Logic is not obvious

createInterfaceOSH(mac, hostOSH=None, description=None, index=None, type=None, adminStatus=None, operStatus=None, speed=None, name=None, alias=None, interfaceClass="interface")

source code 

Creates an ObjectStateHolder based on the interface at the specified address. Throws

Parameters:
  • mac (string - either a MAC address or a MAC index) - the MAC address of the interface, or the interface index or the interface description
  • hostOSH (ObjectStateHolder) - the container node ObjectStateHolder
Returns: ObjectStateHolder
new interface or None

createLinkOSH(className, end1, end2)

source code 

Creates an ObjectStateHolder class that represents a link. The link must be a valid link according to the class model.

Parameters:
  • className (string) - the name of the link to create
  • end1 (CmdbObjectID) - the from of the link
  • end2 (CmdbObjectID) - the to of the link
Returns: ObjectStateHolder
a link from end1 to end2 of type className

createIpOSH(ipAddress, netmask=None, dnsname=None, ipProps=None)

source code 

Creates an ObjectStateHolder that represents an IP.

Parameters:
  • ipAddress (string) - a well formatted IP address
  • netmask (string) - a well formatted net mask
  • dnsname (string) - the given IP-related DNS name
Returns: ObjectStateHolder
an IP address OSH

setHostOsName(hostOsh, osName)

source code 

Deprecated: Use setOsName of HostBuilder instead

isMatchedByRegexpList(regexpListString, value, delimiter=COMMA)

source code 

Checks if some value part of value can be matched by at least one regexp.

Parameters:
  • regexpListString - String represented by sequence of regexps separated by some delimiter
  • value - Actual value which is checked by regexps
  • delimiter - Delimiter used in regexpListString. By default is ', ' without quotes

Deprecated: Please do not use this method. It won't be accessible in the public scope

isIncludedToList(listOfElementsString, value, delimiter=COMMA)

source code 

Check value for existance in the string of elements delimited by <delimiter> str, str, str -> bool

Deprecated: Please do not use this method. It won't be accessible in the public scope

addHostAttributes(uh_obj, osName=None, machineName=None, machineBootDate=None)

source code 

Sets the machine name and operation system attributes of a node.

Parameters:
  • uh_obj (OSH) - the node to update
  • osName (string) - the operation system name, can be None
  • machineName (string) - the machine name, can be None

createHostOSH(ipAddress, hostClassName="node", osName=None, machineName=None, machineBootDate=None)

source code 

Creates a node OSH with its associated IP Address, operation system name. and machine name. The created node is not complete>

Parameters:
  • ipAddress (string) - a well formated IP address
  • hostClassName (string) - the default is node
  • osName (string) - the operation system name, can be None
  • machineName (string) - the MAC address, can be None

createNetworkOSH(ipAddress, netmask)

source code 

create a new OSH that represent a network

Parameters:
  • ipAddress (string) - a well formed IP address
  • netmask (string) - a well formed new mask
Returns: ObjectStateHolder
a new network OSH

createCompleteHostOSHByInterfaceList(hostClass, interfaceList, osName=None, machineName=None, machineBootDate=None, host_cmdbid=None, host_key=None, host_macs=None, ucmdb_version=None)

source code 

Returns the minimal valid mac address to be used as key for the node. A valid mac is one that passed isValidMac() method. For some interfaces (like Wireless, VMware, Bluetooth etc), the MAC address cannot be used as the key.

Parameters:
  • hostClass (string) - the node type, for example nt
  • interfaceList (list) - a list of NetworkInterface
  • osName (string) - operation system name, can be None
  • machineName (string) - can be None

createCompleteHostOSH(hostClass, hostKey, osName=None, machineName=None, machineBootDate=None)

source code 

Creates a OSH that represents a complete node.

Parameters:
  • hostClass (string) - the node type, for example nt
  • hostKey (string) - the smallest MAC address of the machine
  • osName (string) - operation system name, can be None
  • machineName (string) - can be None
Returns: ObjectStateHolder

createHostAndIPOSHV(ip)

source code 

Creates an incomplete node and an IP connected with a contained link.

Parameters:
  • ip (string) - a well formed IP address
Returns: ObjectStateHolderVector that contains three ObjectStateHolder classes
return a OSHV that contains three OSH object, IP, node, and a link between them

createCFOSH(filename, extension, path, filecontent, containerOSH=None, description=None, charsetName=None)

source code 

Creates a ObjectStateHolder that contains a zipped configuration file. This method is deprecated

createConfigurationDocumentOSH(name, path, content, containerOSH=None, contentType=None, contentLastUpdate=None, description=None, version=None, charsetName=None)

source code 

Creates ObjectStateHolder that represents a configuration document.

Parameters:
  • name (string) - the name of the configuration document
  • path (string) - full path to configuration file
  • content (string) - contents of configuration file
  • containerOSH (ObjectStateHolder) - the container of the configuration document
  • contentType (string) - content type
  • contentLastUpdate (java.util.Date) - last time the content was updated
  • description (string) - description of the document
  • version (string) - version of configuration document
  • charsetName (string) - charset name of the content
Returns:
ObjectStateHolder for configuration document

createProcessOSH(name, hostOSH, process_cmdline=None, process_pid=None, process_path=None, process_parameters=None, process_user=None, process_startuptime=None, procDescription=None)

source code 

Creates a new OSH that represent a process.

Parameters:
  • name (string) - the name of the process
  • hostOSH (ObjectStateHolderVector) - the container node of the proccess
  • process_cmdline (string)
  • process_path (string) - the path of the process installation
  • process_parameters (string) - process parameters
  • process_startuptime (long) - time when process has been started in milliseconds
Returns: ObjectStateHolder
a new ObjectStateHolder that represents a process

createServiceURLAddressOsh(hostOSH, url)

source code 
Parameters:
  • hostOSH (ObjectStateHolderVector) - the container node of the process
Returns: ObjectStateHolder
a new ObjectStateHolder that represents an ipserver

Deprecated: use modeling.createUrlOsh method instead

Creates a new OSH that repesents an ipserver.

createUrlOsh(hostOsh, url, type=None)

source code 

Creates a new OSH that represents an url

Parameters:
  • hostOsh (ObjectStateHolder) - the container node of the url
  • url (string) - url connect string
Returns: ObjectStateHolder
a new ObjectStateHolder instance

createServiceAddressOsh(hostOSH, ip, portNumber, portType, portName=None)

source code 

Creates a new OSH that repesents an ipserver.

Parameters:
  • hostOSH (ObjectStateHolderVector) - the container node of the process
  • portNumber (int) - port number
  • portType (enum) - port type
  • portName (string) - name of the port
  • ip (string)
Returns: ObjectStateHolder
a new ObjectStateHolder that represents an ipserver

createDatabaseOSH(dbType, dbName, dbPort, ip, hostOSH, credentialsID=None, userName=None, timeout=None, dbVersion=None, appVersion=None, applicationVersionNumber=None)

source code 
Parameters:
  • dbType - this is a key attribute that defines db type
  • dbName - this is a key attribute that represented in OSH as SID
Raises:
  • Exception - if db type is not supported
  • ValueError - if key attribute is missing

setDatabaseVersion(dbOsh, version)

source code 

ObjectStateHolder, str -> void

Deprecated: use createDatabaseOSH instead

setWebServerVersion(webServerOsh, version)

source code 

ObjectStateHolder, str -> void

Deprecated: use createWebServerOSH instead

createJ2eeDomain(domainName, Framework=None, vendor=None, adminServerInfo=None)

source code 

Deprecated: use jee.Domain and jee.ServerTopologyBuilder.buildDomainOsh method instead

createJ2EEServer(type, ipddress, port=None, hostOSH=None, serverName=None, domainName=None)

source code 

VERY IMPORTANT: despite serverName has default value(None) it is very important to set its name
        since this is key attribute for j2eeserver. In case it is None we set it to 'Default Server'

createCpuOsh(cid, hostOsh, speed=None, coreNumber=None, vendor=None, descr=None, data_name=None)

source code 

Creates CPU OSH by specified cid and node container str, ObjectStateHolder[, long(speed MHz), int(coreNumber), str, str, str] -> ObjectStateHolder

Parameters:
  • cid - cid - key attribute
  • hostOsh - OSH instance of the container node - key attribute
Raises:
  • ValueError - if key attribute CID is missing

createOshByCmdbId(className, cmdbId)

source code 

Creates a new OSH that represent a configuration item of type 'className'

Parameters:
  • className (string) - type of CI
  • cmdbId (CmdbObjectId) - CI ID in UCMDB
Returns: ObjectStateHolder
new OSH instance

createOshByCmdbIdString(className, cmdbId)

source code 

Creates a new OSH that represent a configuration item of type 'className'

Parameters:
  • className (string) - type of CI
  • ucmdbId (string) - CI ID in UCMDB
Returns: ObjectStateHolder
new OSH instance

finalizeHostOsh(hostOsh)

source code 
Returns:
hostOsh or None @deprecated

Variables Details [hide private]

IGNORE_INTERFACE_PATTERN_FILTER

Value:
['LoopBack', 'Wireless', 'Virtual', 'WAN', 'RAS Async', 'Bluetooth', '\
FireWire', 'VPN', 'Tunnel adapter', 'Tunneling Pseudo', 'Hamachi', '13\
94', 'Miniport', 'TAP\-Win32', 'Teefer2', 'PPP\/SLIP']

OS_TYPE_AND_CLASS_TO_OS_FAMILY_MAP

Value:
{'linux': 'unix', 'sunos': 'unix', 'freebsd': 'unix', 'aix': 'unix', '\
unix': 'unix', 'nt': 'windows', 'windows': 'windows', 'vax': 'vax', 'h\
p-ux': 'unix', 'vmware_esx_server': 'baremetal_hypervisor', 'vmkernel'\
: 'baremetal_hypervisor', 'ipar': 'mainframe', 'lpar': 'mainframe', 'm\
ainframe': 'mainframe'}

databaseDataNames

Value:
{'oracle': 'Oracle DB', 'sqlserver': 'MSSQL DB', 'db2': 'IBM DB2', 'sy\
base': 'Sybase DB', 'maxdb': 'SAP MaxDB', 'hana_database': 'SAP HanaDB\
', 'mysql': 'MySQL DB'}

STORAGE_ID_TO_STORAGE_TYPE

Value:
{0: OTHER_STORAGE_TYPE, 1: NO_ROOT_DIRECTORY_STORAGE_TYPE, 2: REMOVABL\
E_DISK_STORAGE_TYPE, 3: FIXED_DISK_STORAGE_TYPE, 4: NETWORK_DISK_STORA\
GE_TYPE, 5: COMPACT_DISK_STORAGE_TYPE, 6: RAM_STORAGE_TYPE}

applicationNameToProductNameMap

Value:
{'Oracle DB': 'oracle_database', 'SAP MaxDB': 'maxdb', 'SAP HanaDB': '\
hana_database', 'MSSQL DB': 'sql_server_database', 'IBM DB2': 'db2_dat\
abase', 'Sybase DB': 'sybase_database', 'MySQL DB': 'mysql_database', \
'JBoss AS': 'jboss_application_server', 'Oracle iAS': 'oraclei_applica\
tion_server', 'WebLogic AS': 'weblogic_application_server', 'WebSphere\
 AS': 'websphere_application_server', 'Glassfish AS': 'glassfish_appli\
cation_server', 'Jetty WebServer': 'jetty_application_server', 'Micros\
oft IIS WebServer': 'iis_web_server', 'Apache WebServer': 'apache_web_\
...

applicationTypeToDiscoveredProductNameMap

Value:
{'abap_sap_central_services': 'SAP ABAP Central Services', 'j2ee_sap_c\
entral_services': 'SAP J2EE Central Services', 'sap_r3_server': 'SAP A\
BAP Application Server', 'sap_j2ee_app_server': 'SAP J2EE Application \
Server', 'siebel_app_server': 'Siebel Server', 'siebel_gateway': 'Sieb\
el Gateway Name Server'}

CLASSES_80_TO_BDM

Value:
{'host': 'node', 'clusteredservice': 'cluster_resource_group', 'cluste\
rgroup': 'cluster_resource_group_config', 'clusterresource': 'cluster_\
resource_config', 'hostresource': 'node_element', 'service': 'windows_\
service', 'logicalvolume': 'logical_volume', 'disk': 'file_system', 's\
oftware': 'installed_software', 'ipserver': 'ip_service_endpoint', 'ur\
l': 'uri_endpoint', 'application': 'running_software', 'failovercluste\
rsoftware': 'cluster_software', 'dnsserver': 'dns_server', 'webserver'\
: 'web_server', 'networkresource': 'network_entity', 'network': 'ip_su\
...

MIME_TYPES

Value:
{'3dm': 'x-world/x-3dmf', '3dmf': 'x-world/x-3dmf', 'a': 'application/\
octet-stream', 'aab': 'application/x-authorware-bin', 'aam': 'applicat\
ion/x-authorware-map', 'aas': 'application/x-authorware-seg', 'abc': '\
text/vnd.abc', 'acgi': 'text/html', 'afl': 'video/animaflex', 'ai': 'a\
pplication/postscript', 'aif': 'audio/x-aiff', 'aifc': 'audio/x-aiff',\
 'aiff': 'audio/x-aiff', 'aim': 'application/x-aim', 'aip': 'text/x-au\
diosoft-intra', 'ani': 'application/x-navi-animation', 'aps': 'applica\
tion/mime', 'arc': 'application/octet-stream', 'arj': 'application/oct\
...

__J2EE_SERVERS

Value:
{'glassfish': __J2eeServerDefinition('glassfishas', 'Glassfish AS', 'o\
racle_corp'), 'jboss': __J2eeServerDefinition('jbossas', 'JBoss AS', '\
jboss_group_llc'), 'weblogic': __J2eeServerDefinition('weblogicas', 'W\
ebLogic AS', 'bea_systems_ltd'), 'websphere': __J2eeServerDefinition('\
websphereas', 'WebSphere AS', 'ibm_corp'), 'oracleias': __J2eeServerDe\
finition('oracleias', 'Oracle iAS', 'oracle_corp')}

__APP_SERVER_TYPES

Value:
{'j2eeserver': __AppServerTypeDefinition(['j2ee']), 'jbossas': __AppSe\
rverTypeDefinition(['j2ee']), 'weblogicas': __AppServerTypeDefinition(\
['j2ee']), 'websphereas': __AppServerTypeDefinition(['j2ee']), 'siebel\
_app_server': __AppServerTypeDefinition(['siebel']), 'sap_r3_server': \
__AppServerTypeDefinition(['sap']), 'abap_sap_central_services': __App\
ServerTypeDefinition(['sap']), 'sap_j2ee_app_server': __AppServerTypeD\
efinition(['j2ee', 'sap']), 'j2ee_sap_central_services': __AppServerTy\
peDefinition(['j2ee', 'sap'])}

__APP_SYSTEM_VENDORS

Value:
{'exchangesystem': 'microsoft_corp', 'tomcatcluster': 'the_apache_soft\
ware_foundation', 'vmware_cluster': 'v_mware_inc', 'siebel_site': 'ora\
cle_corp', 'veritascluster': 'symantec_corp', 'serviceguardcluster': '\
hewlett_packard_co', 'mscluster': 'microsoft_corp', 'rac': 'oracle_cor\
p', 'oraclesystem': 'oracle_corp', 'sap_system': 'sap_ag', 'hana': 'sa\
p_ag', 'bobj_system': 'sap_ag'}